package cn.mogugo.util;

import java.io.IOException;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.mogugo.comm.CC;

public class InitServlet  extends HttpServlet {
	 
	 public void init(ServletConfig conf)throws ServletException{

		 ServletContext application = conf.getServletContext();
		
	      application.setAttribute("application_title", CC.title);
	      
	      application.setAttribute("application_keywords", CC.keyword);
	      
	      application.setAttribute("application_description", CC.description);
	      
	}

	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		
	}

	public void doPost(HttpServletRequest request, HttpServletResponse response)
	throws ServletException, IOException {

	}
	
	public void destroy() {
	}

}
